import request from '@/config/axios'

export const createFibersOrderNodes = async (listItem) => {
  return await request.post({ url: '/opticore/fibers/order-node/create_batch', data: listItem })
}

export const fetchFibersOrderNodesById = async (orderId) => {
  const params = { orderId: orderId }
  return await request.get({ url: '/opticore/fibers/order-node/get/order_id', params })
}


export const getMaterial = async (data) => {
    return await request.post({url: '/opticore/fibers/order-node-detail/getMaterial',data})
}

export const updateMaterial = async (data) => {
    return await request.put({url: '/opticore/fibers/order-node-detail/updateMaterial',data})
}
